package com.cool.service.shop.shopimpl;

import com.cool.mapper.shopmapper.ShopMapper;
import com.cool.po.shoppo.ShopPo;
import com.cool.service.shop.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public List<ShopPo> findAll() {
        return shopMapper.findAll();
    }

    @Override
    public List<ShopPo> findBystate(Integer state) {
        return shopMapper.findBystate(state);
    }

    @Override
    public List<ShopPo> findByLike(String like) {
        return shopMapper.findByLike(like);
    }

    @Override
    public Integer insertShopPo(ShopPo shopPo) {
        return shopMapper.insertShopPo(shopPo);
    }

    @Override
    public Integer updateShopPo(ShopPo shopPo) {
        return shopMapper.updateShopPo(shopPo);
    }

    @Override
    public Integer deleteShopPo(Integer shopId) {
        return shopMapper.deleteShopPo(shopId);
    }
}
